package cn.iocoder.yudao.module.school.controller.admin.info.vo;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.*;
import java.util.*;
import org.springframework.format.annotation.DateTimeFormat;
import java.time.LocalDateTime;
import com.alibaba.excel.annotation.*;
import cn.iocoder.yudao.framework.excel.core.annotations.DictFormat;
import cn.iocoder.yudao.framework.excel.core.convert.DictConvert;

@Schema(description = "管理后台 - 校园信息 Response VO")
@Data
@ExcelIgnoreUnannotated
public class InfoRespVO {

    @Schema(description = "编号", requiredMode = Schema.RequiredMode.REQUIRED, example = "14705")
    @ExcelProperty("编号")
    private Long id;

    @Schema(description = "学校名称", requiredMode = Schema.RequiredMode.REQUIRED, example = "张三")
    @ExcelProperty("学校名称")
    private String schoolName;

    @Schema(description = "学校地址", requiredMode = Schema.RequiredMode.REQUIRED)
    @ExcelProperty("学校地址")
    private String address;

    @Schema(description = "学校类型", requiredMode = Schema.RequiredMode.REQUIRED, example = "1")
    @ExcelProperty(value = "学校类型", converter = DictConvert.class)
    @DictFormat("school_type") // TODO 代码优化：建议设置到对应的 DictTypeConstants 枚举类中
    private Integer schoolType;

    @Schema(description = "联系电话")
    @ExcelProperty("联系电话")
    private String phone;

    @Schema(description = "校长姓名")
    @ExcelProperty("校长姓名")
    private String principal;

    @Schema(description = "建校年份")
    @ExcelProperty("建校年份")
    private Integer foundingYear;

    @Schema(description = "学校简介", example = "你说的对")
    @ExcelProperty("学校简介")
    private String description;

    @Schema(description = "状态", requiredMode = Schema.RequiredMode.REQUIRED)
    @ExcelProperty(value = "状态", converter = DictConvert.class)
    @DictFormat("common_status") // TODO 代码优化：建议设置到对应的 DictTypeConstants 枚举类中
    private Integer status;

    @Schema(description = "学校Logo", example = "https://www.iocoder.cn")
    @ExcelProperty("学校Logo")
    private String logoUrl;

    @Schema(description = "地理位置")
    @ExcelProperty("地理位置")
    private String location;

    @Schema(description = "占地面积")
    @ExcelProperty("占地面积")
    private Double area;

    @Schema(description = "创建时间", requiredMode = Schema.RequiredMode.REQUIRED)
    @ExcelProperty("创建时间")
    private LocalDateTime createTime;

}